// 新增组合式函数文件
import { ref } from 'vue';
export function useDetailDialog() { 
  const detailDialogVisible = ref(false); 
  const detailRow = ref({}); 
  const showDetail = (row) => { 
    detailRow.value = row; 
    detailDialogVisible.value = true; 
  }; 
  const hideDetail = () => { 
    detailDialogVisible.value = false; 
  }; 
  return { detailDialogVisible, detailRow, showDetail, hideDetail }; 
}